home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
USEFUL_C
/
CINSTANC.H
< prev
next >
Wrap
Text File
|
1990-04-28
|
975b
|
36 lines
/****************************************************************************
*
* FILE: CInstance.h
* CREA: Sven Axelsson, GU
* MODF: mîndag 16 april 1990 @ 10.52.00
* HIST: 90-04-16 (1.1) Provide optional file name in Init method.
* Removed the version parameter in Read- and
* Write calls.
* 90-04-12 (1.0) First version.
*
****************************************************************************/
# define _H_CInstance
struct CInstance : indirect
{
Str27 folder_name;
Str27 file_name;
ResType type;
ResType creator;
short folder_vref;
short file_ref;
Boolean created;
CInstance *Init( ResType, Str255 );
short GetOID( ResType );
OSErr Open( void );
OSErr Close( void );
OSErr ReadObj( ResType, short, short *, Boolean, void * );
OSErr WriteObj( ResType, short, short, Boolean, void * );
OSErr ReadRes( ResType, short, Handle );
OSErr WriteRes( ResType, short *, Handle );
OSErr Delete( ResType, short );
};